<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>FreeBSD in the Press</title>
    <link>https://www.FreeBSD.org/press/</link>
    <description>Press Stories about FreeBSD</description>
    <language>en-us</language>
    <webMaster>freebsd-www@FreeBSD.org (Webmaster Team)</webMaster>
    <managingEditor>freebsd-www@FreeBSD.org (Webmaster Team)</managingEditor>
    <image>
      <url>https://www.FreeBSD.org/logo/logo-full.png</url>
      <title>FreeBSD in the Press</title>
      <link>https://www.FreeBSD.org/press/</link>
    </image>
    <atom:link href="https://www.FreeBSD.org/press/feed.xml" rel="self" type="application/rss+xml"/>
    {{ $pressMonthPrev := false }}
    {{ $data := index .Site.Data "en" }}
    {{ $pressData := $data.press }}
    {{ with $pressData.press }}
      {{ $pressCounter := 0 }}
      {{ $pressMonthCounter := 1 }}
      {{ range (sort .press "date" "desc") }}
        {{ if lt $pressCounter 10 }}
          {{ $pressMonthCur := dateFormat "2006-01" .date }}
          {{ if eq $pressMonthCur $pressMonthPrev }}
            {{ $pressMonthCounter = add $pressMonthCounter 1 }}
          {{ else }}
            {{ $pressMonthCounter = 1 }}
          {{ end }}
            <item>
            {{ if .name }}
                <title>
                  {{ .name }}
                </title>
            {{ end }}
            {{ if .description }}
                <description>
                  {{ .description }}
                </description>
            {{ end }}
              <link>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</link>
              <guid>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</guid>
              <pubDate>{{ dateFormat "2006-01-02" .date }}</pubDate>
            </item>
          {{ $pressMonthPrev = $pressMonthCur }}
        {{ end }}
        {{ $pressCounter = add $pressCounter 1 }}
      {{ end }}
    {{ end }}
  </channel>
</rss>
